projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
21726a7
)
UBIFS: Change ubifsload to set the filesize variable
author
Bastian Ruppert
<
[email protected]
>
Mon, 5 Sep 2011 03:03:57 +0000
(
03:03
+0000)
committer
Wolfgang Denk
<
[email protected]
>
Fri, 9 Sep 2011 22:04:29 +0000
(
00:04
+0200)
This is the same behaviour like tftp or fatload command.
Signed-off-by: Bastian Ruppert <
[email protected]
>
CC:
[email protected]
Acked-by: Detlev Zundel <
[email protected]
>
fs/ubifs/ubifs.c
patch
|
blob
|
history
diff --git
a/fs/ubifs/ubifs.c
b/fs/ubifs/ubifs.c
index 61f70b29604c0a7fcf8e4ff1236286b19959cf7f..2e6313a89f6cb00be9c4d37729a9dd4f0ed9eb33 100644
(file)
--- a/
fs/ubifs/ubifs.c
+++ b/
fs/ubifs/ubifs.c
@@
-686,6
+686,7
@@
int ubifs_load(char *filename, u32 addr, u32 size)
int i;
int count;
int last_block_size = 0;
+ char buf [10];
c->ubi = ubi_open_volume(c->vi.ubi_num, c->vi.vol_id, UBI_READONLY);
/* ubifs_findfile will resolve symlinks, so we know that we get
@@
-737,8
+738,11
@@
int ubifs_load(char *filename, u32 addr, u32 size)
if (err)
printf("Error reading file '%s'\n", filename);
- else
+ else {
+ sprintf(buf, "%lX", size);
+ setenv("filesize", buf);
printf("Done\n");
+ }
ubifs_iput(inode);